<template>
  <div class="navigation_bar_container" v-show="navShow">
    <div class="navigation_bar_wrapper">
      <div class="navigation_bar_back" @click="goBack">
      <!-- <img src="../../../public/navtopIcon/back.png" alt=""> -->
      </div>
      <div class="navigation_bar_title">
        {{title}}
      </div>
      <div class="navigation_bar_exit">
        <!-- <img src="../../../public/navtopIcon/cry.png" alt=""> -->
      </div>
    </div>
  </div>
</template>

<script>
// import _ from ""
export default {
  computed:{
    navShow:function(){
      return this.$route.meta.navShow
    },
    title:function(){
      return this.$route.meta.title
    },
  },
  methods:{
    goBack(){
      this.$router.goBack();
    }
  }
}
</script>

<style scoped>
.navigation_bar_container
{
    width: 100vw;
    height: 64px;
    border-bottom: 1px solid lightgray;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.navigation_bar_wrapper
{
  width: 100%;
  height: 100%;
  display: inline-flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.navigation_bar_back
{
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.navigation_bar_back img 
{
  width: 30px;
}

.navigation_bar_title
{
  flex: 4;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.navigation_bar_exit
{
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.navigation_bar_exit img 
{
  width: 30px;
}
</style>